<?php
require_once('db/db.php');
$db=new DB;

$data=$db->get_all('select * from category as c cross join category as f where f.id=c.father');
print_r($data);
?>
